package cn.rongdao.jrkabao.ui.main.mainfragment.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;
import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.main.ProductListBean;
import cn.rongdao.jrkabao.ui.loan.adapter.viewholder.LoanProductViewHolder;


/**
 * Created by jiangyongxing on 2017/8/2.
 * 描述：
 */

public class FragmentMainAdapter extends FRBaseRecyclerAdapter<ProductListBean, FRBaseRecyclerViewHolder<ProductListBean>> {

    public FragmentMainAdapter(Context context, OnItemClickListener<FRBaseRecyclerViewHolder<ProductListBean>> listener) {
        super(context, listener);
    }

    @Override
    public FRBaseRecyclerViewHolder<ProductListBean> onCreateViewHolder(ViewGroup parent, int viewType) {
        return new LoanProductViewHolder(LayoutInflater.from(getContext()).inflate(R.layout.item_main, parent, false));
    }


}
